<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
  <title>企业留言功能</title>
  <script type="text/javascript" src="/swagger/lib/jquery-1.8.0.min.js"></script>
  <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  <script type="text/javascript">
  //编写自定义JS代码
  
  // 初始化日期
	
			function getInitMonth() {
				var date = new Date();
				var nowYear = date.getFullYear();
				var month = ("0" + (date.getMonth() + 1)).slice(-2);
				var day = ("0" + date.getDate()).slice(-2);
				var today = nowYear + "-" + (month) + "-" + (day);
				$("#messtime").val(today);
			}

			$(function() {
				getInitMonth();
			});
		</script>
 </head>
 <body>
  <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="shopmessagesController.do?doAdd" tiptype="6">
					<input id="id" name="id" type="hidden" value="${shopmessagesPage.id }"/>
		<table style="width: 99%;" cellpadding="0" cellspacing="1" class="formtable">
				<tr>
					<td align="right">
						<label class="Validform_label">
							留言人编号:
						</label>
					</td>
					<td class="value">
					     	 <input id="user" name="user" type="text" maxlength="19" readonly="readonly" style="width: 150px"  datatype="*" value="系统管理员" ignore="ignore" />
					     	 <input id="userid" name="userid" type="hidden" maxlength="19" readonly="readonly" style="width: 150px"  datatype="*" value="0" ignore="ignore" />
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">留言人编号</label>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							留言时间:
						</label>
					</td>
					<td class="value">
							   <input id="messtime" name="messtime" type="text" style="width: 150px" class="Wdate" readonly="readonly"  ignore="ignore" />    
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">留言时间</label>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							留言状态:
						</label>
					</td>
					<td class="value">
							<t:dictSelect field="messstate" type="list"  datatype="*"  typeGroupCode="LYSTATUS"   defaultVal="${shopmessagesPage.messstate}" hasLabel="false"  title="留言状态" ></t:dictSelect>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">留言状态</label>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							企业编号:
						</label>
					</td>
					<td class="value">
					     	<input id="shopid" name="shopid" type="text" style="width: 150px" class="searchbox-inputtext"  datatype="n"  ignore="ignore" readonly="readonly" onclick="popupClick(this,'企业编号','shopid','shops_select1')" />
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">企业编号</label>
						</td>
				</tr>
				
				<tr>
					<td align="right">
						<label class="Validform_label">
							留言内容:
						</label>
					</td>
					<td class="value" >
						  	 <textarea style="height:auto;width:95%" rows="6" id="messcontent" name="messcontent"  ignore="ignore" ></textarea>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">留言内容</label>
						</td>
					</tr>
			</table>
		</t:formvalid>
 </body>
